-- GENERATED SPELL FOR [Ironforge Paladin] --


function spell0_18986(pUnit, Event) --@Exorcism,n/a--
pUnit:FullCastSpellOnTarget(33632,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18986', 598, 1)
end

function spell1_18986(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(13005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18986', 6251, 1)
end

function spell2_18986(pUnit, Event) --@Seal of Sacrifice,n/a--
pUnit:FullCastSpellOnTarget(13903,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18986', 30313, 1)
end

function Sorts_18986(pUnit, Event)
local choix_sorts_18986 = math.random(0, 2)
if choix_sorts_18986 == 0 then
pUnit:RegisterEvent('spell0_18986', 1, 1)
end
if choix_sorts_18986 == 1 then
pUnit:RegisterEvent('spell1_18986', 1, 1)
end
if choix_sorts_18986 == 2 then
pUnit:RegisterEvent('spell2_18986', 1, 1)
end
end

function mob18986_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18986', math.random(1500, 3000), 1)
end

function mob18986_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18986_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18986_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18986, 1, 'mob18986_Action')
RegisterUnitEvent(18986, 2, 'mob18986_Leave')
RegisterUnitEvent(18986, 3, 'mob18986_Kill')
RegisterUnitEvent(18986, 4, 'mob18986_Die')
